package org.springblade.modules.sga.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.modules.enterprise.entity.AwardCorporate;
import org.springblade.modules.sga.mapper.SgaAwardCorporateMapper;
import org.springblade.modules.sga.service.ISgaAwardCorporateService;
import org.springblade.modules.sga.vo.SgaAwardCorporateVO;
import org.springframework.stereotype.Service;

@Service
public class SgaAwardCorporateServiceImpl extends BaseServiceImpl<SgaAwardCorporateMapper, AwardCorporate> implements ISgaAwardCorporateService {

	@Override
	public IPage<SgaAwardCorporateVO> selectAwardCorporatePage(IPage<SgaAwardCorporateVO> page, Integer status) {
		return page.setRecords(baseMapper.selectAwardCorporatePage(status, page));
	}

	@Override
	public Long countSubsidyCost() {
		return baseMapper.countSubsidyCost();
	}
}
